package com.lujieni.springbooteasyexcel.dto;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.lujieni.springbooteasyexcel.po.BasicEntity;
import lombok.Data;

import javax.persistence.Table;
import java.util.Date;

@Data
public class StudentExportDTO {

    /**
     * 姓名
     */
    @ExcelProperty(value = "名字", index = 0)
    private String name;

    /**
     * 年龄
     */
    @ExcelProperty(value = "年级", index = 1)
    private Integer age;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别", index = 2)
    private String gender;

    @ExcelProperty(value = "创建时间", index = 3)
    @ColumnWidth(30)
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    private Date createTime;


}

